using System;
using System.Collections.Generic;
using System.Text;

namespace UMC.WorkFlow
{
    /// <summary>
    /// 作业状态
    /// </summary>
    public enum TaskStatus
    {
        /// <summary>
        /// 流程出错
        /// </summary>
        None = 0,
        /// <summary>
        /// 准备
        /// </summary>
        /// <remarks>准备是每一个流程的开始状态，当流程被(Termination)，流程自动回到（Propare）准备</remarks>
        Prepare = 1,
        /// <summary>
        /// 申请在检查中
        /// </summary>
        InReview = 2,
        /// <summary>
        /// 终止或驳回
        /// </summary>
        /// <remarks>每一次终止，流程自动回到Propare（准备）状态</remarks>
        Termination = 4,
        /// <summary>
        /// 锁定挂起
        /// </summary>
        /// <remarks>
        /// 挂起，是流程运行的基本状态，
        /// 例如：流程等待下一个工作点审批，就是挂起
        /// </remarks>
        Locked = 8,
        /// <summary>
        /// 完成
        /// </summary>
        Completed = 16,
    }
}
